#include "ModelBridge.h"
#include "Ordinary.h"
// #include "HistoryBased.h"

using namespace std;

static Ordinary *model = nullptr;

ModelBridge::ModelBridge() {
    model = new Ordinary();

    
}

ModelBridge::~ModelBridge() {
    delete model;
    model = nullptr;
}

std::string ModelBridge::query(const std::string &input) {
    if (model)
        return model->chat_with_model(input);
    return "模型未初始化。";
}
